package libs;

import java.io.*;

public class Librerias {

	
	
	
	 public static void escribirReporteUnico(String archivo,String data)
	  {
	  try{
	  // Create file 
	  FileWriter fstream = new FileWriter(archivo+".txt");
	  BufferedWriter out = new BufferedWriter(fstream);
	  out.write(data);
	  //Close the output stream
	  out.close();
	  }catch (Exception e){//Catch exception if any
	  System.err.println("Error: " + e.getMessage());
	  }
	  
	}
	 
	 public static void escribirReporte(String archivo,String data){
	 try {
		    PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(archivo+".txt", true)));
		    out.println(data);
		    out.close();
		} catch (IOException e) {
		    //oh noes!
		}
	 }
}
